home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-04 | 732 b | 38 lines | [TEXT/MPS ] |
- #
- # External_Tools interface test script.
- #
-
- Libraries "YourTool.vulib";
-
- x := YourTool( "Initialize", true);
- println x;
-
- asyncInfo := YourTool( "YourService", 1, 1) async:true;
-
- println ">> YourTool (async info)";
- println asyncInfo;
- println;
-
- x := YourTool( "GetToolVersion" );
- println x;
-
- x := YourTool( "GetToolServices");
- println x;
-
- x := YourTool( "ServiceSupported", "YourService");
- println x;
-
-
- # Now that we have done the other service requests,
- # let's check to see if our asynchronous request for
- # the "YourService" service has completed yet.
- while( asyncInfo[1] = 1 )
- begin
- println "Polling...";
- asyncInfo := YourTool( "Poll", asyncInfo[2] );
- end;
-
- println;
- println ">> YourTool (after polling)";
- println asyncInfo;
-